import request from "../utils/request";

// 我的攻略列表
export const strategyList = (params) => request.post(`/personalCenter/strategy/list`, params)
// 我的攻略列表-修改
export const strategyUpdate = (params) => request.post(`/personalCenter/strategy/update`, params)
// 我的攻略列表-新增
export const strategyAdd = (params) => request.post(`/personalCenter/strategy/add`, params)
// 我的攻略列表-删除
export const strategyDelete = (id) => request.get(`/personalCenter/strategy/delete/${id}`)
// 我的攻略-攻略新增关联
export const scenicAreaAndHotelAndFood = (params) => request.post(`/personalCenter/scenicAreaAndHotelAndFood`, params)

// 所有商品的详情
export const strategyById = (params) => request.post(`/index/strategyById`, params)
// 详情页使用的推荐
export const strategyListNew = () => request.get(`/index/strategyListNew`)
// 删除图片
export const deletePhoto = (params) => request.post(`/commonUtil/deletePhoto`, params)

// 添加/取消收藏
export const collectAdd = (params) => request.post(`/personalCenter/collect/add`, params)
// 收藏列表
export const collectList = (params) => request.post(`/personalCenter/collect/list`, params)
// 收藏列表-删除
export const collectDelete = (params) => request.post(`/personalCenter/collect/delete`, params)

// 足迹添加
export const browsingHistoryAdd = (params) => request.post(`/personalCenter/browsingHistory/add`, params)
// 足迹-列表
export const browsingHistoryList = (params) => request.post(`/personalCenter/browsingHistory/list`, params)
// 足迹-列表-删除
export const browsingHistoryDelete = (params) => request.post(`/personalCenter/browsingHistory/delete`, params)
// 详情-足迹/收藏-数量
export const userInfoCount = (params) => request.post(`/personalCenter/userInfo/count`, params)
// 详情-足迹/收藏-是否已收藏
export const userInfoIsNotCollect = (params) => request.post(`/personalCenter/userInfo/isNotCollect`, params)

// 个人资料获取
export const userInfoList = () => request.get(`/personalCenter/userInfo/list`)
// 个人资料-更新
export const userInfoUpdate = (params) => request.post(`/personalCenter/userInfo/update`, params)